package com.example.administrator.printoutindemo.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.printoutindemo.R;
import com.example.administrator.printoutindemo.mvp.ui.entity.InventoryAndroid;

import java.util.List;


public class KuCunAdapter extends BaseQuickAdapter<InventoryAndroid, BaseViewHolder> {

    private Context mContext;

    public KuCunAdapter(Context context, @Nullable List<InventoryAndroid> data) {
        super(R.layout.item_ku_cun, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, InventoryAndroid item) {
//        GlideUtil.loadImage(mContext, item.getImg(), helper.getView(R.id.img_product));
        helper.setText(R.id.tv_xiang_mu_ming_cheng, item.getProjectname());
        helper.setText(R.id.tv_gong_ying_shang, item.getSupplier());
        helper.setText(R.id.tv_ding_dan_hao, item.getPurchaseid());
        helper.setText(R.id.tv_wu_liao_ming_cheng, item.getMaterial());
        helper.setText(R.id.tv_shuliang, item.getNums());
        helper.setText(R.id.tv_cang_ku, item.getSname());
    }

}
